//
//  main.m
//  08_类的扩展
//
//  Created by dllo on 16/7/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSObject+SayHello.h"
#import "NSString+BigWrite.h"
#import "Student.h"
#import "BuyPerson.h"


int main(int argc, const char * argv[]) {
    
    // 类的扩展的方式
    // 1.Category(类目,分类): 文件名会以 类名+Category名
    NSObject *ob = [[NSObject alloc] init];
    [ob sayHello];
    
    NSLog(@"%@", [@"kjashfksa" bigWrite]);
    
    // 2.Extension(延展): 在.m中
    Student *stu = [[Student alloc] init];
    BuyPerson *buyPer = [[BuyPerson alloc] init];
    stu.delegate = buyPer;
    [stu seeWeChat];

    
    return 0;
}
